#ifndef __SENSOR_FACTORY_H__
#define __SENSOR_FACTORY_H__

#define PREFIX_RESPONSE_CLI "factory-"
#define MAC_LEN (6)

typedef struct _sensor_factory_s
{
    uint8_t is_in_facotry : 1,
        is_switch_testing : 1;
    aos_timer_t auto_send_timer;
} sensor_factory_t;

void sensor_factory_init(void);
int sensor_factory_is_factory_mode(void);
int sensor_factory_handle_switch(switch_press_type_e press_type);

#endif
